const express = require('express');
const folderService = require('../services/folder');

const router = express.Router();

// 新建、修改文件夹
router.post('/', folderService.setFolder);

// 获取文件夹内容
router.get('/', folderService.getFolders);

// 删除文件夹
router.delete('/:id', folderService.deleteFolder);

module.exports = router;